﻿@model String

@if (ViewBag.Required != null && ViewBag.Required)
{
    @Html.TextBox("", Model, new { style = "width: " + (ViewBag.Width != null ? ViewBag.Width : "120") + "px", @class = "Required" })
}
else
{
    @Html.TextBox("", Model, new { style = "width: " + (ViewBag.Width != null ? ViewBag.Width : "120") + "px" }) 
}

